package com.ruoyi.merchant.api.factory;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.merchant.api.RemoteMerchantService;
import com.ruoyi.merchant.api.domain.Merchant;
import com.ruoyi.merchant.api.domain.MerchantImgs;
import com.ruoyi.merchant.api.domain.MerchantVerification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Collections;
import java.util.List;

/**
 * @name: RemoteMerchantFactory
 * @author: zhangzhimin
 * @date: 2025-05-10 15:26
 **/
@Component
public class RemoteMerchantFactory  implements FallbackFactory<RemoteMerchantService> {
    private static final Logger log = LoggerFactory.getLogger(RemoteMerchantFactory.class);

    @Override
    public RemoteMerchantService create(Throwable cause) {
        System.out.print("Merchant托底");
        return new RemoteMerchantService() {

            @Override
            public TableDataInfo merchantlist(Merchant merchant, String source) {
                return null;
            }

            @Override
            public MerchantVerification getMerchantByPhone(String phone, String source) {
                return null;
            }

            @Override
            public AjaxResult merchantAdd(Merchant merchant, String source) {
                return null;
            }

            @Override
            public AjaxResult MerchantVerificationAdd(MerchantVerification merchantVerification, String source) {
                return null;
            }

            @Override
            public AjaxResult addimgs(List<MerchantImgs> merchantImgs, String source) {
                return null;
            }

            @Override
            public List<MerchantVerification> getlist(MerchantVerification merchantVerification, String source) {
                return null;
            }


        };
    }
}
